Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions view/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,9 @@ steal("jquery").then(function( $ ) {

//---- ADD jQUERY HELPERS -----
//converts jquery functions to use views
var convert, modify, isTemplate, isHTML, isDOM, getCallback, hookupView, funcs;
var convert, modify, isTemplate, isHTML, isDOM, getCallback, hookupView, funcs,
// text and val cannot produce an element, so don't run hookups on them
noHookup = {'val':true,'text':true};

convert = function( func_name ) {
// save the old jQuery helper
Expand Down Expand Up @@ -639,8 +641,8 @@ steal("jquery").then(function( $ ) {
return this;
}
}
return modify.call(this, args, old);

return noHookup[func_name] ? old.apply(this,args) :
modify.call(this, args, old);
};
};

Expand Down