src/drivers/jquery/modules/o_O.support.js in eyeballs-0.5.8.2 vs src/drivers/jquery/modules/o_O.support.js in eyeballs-0.5.9
- old
+ new
@@ -36,10 +36,14 @@
}
if(options.replace)
{
$(options.replace).replaceWith(rendered);
}
+ if(options.html)
+ {
+ $(options.html).replaceWith(rendered);
+ }
}
});
}
o_O.get_template = function(template, data, callback){
@@ -61,35 +65,6 @@
$.get(url + template + '.html.mustache', function(response){
o_O.templates[template] = response;
callback(data, response);
});
}
-}
-
-if(typeof String.prototype.capitalize === 'undefined')
-{
- String.prototype.capitalize = function(){
- return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase();
- }
-}
-
-if(typeof String.prototype.underscore === 'undefined')
-{
- String.prototype.underscore = function(){
- return this.replace(/::/g, '/')
- .replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2')
- .replace(/([a-z\d])([A-Z])/g, '$1_$2')
- .replace(/-/g, '_')
- .toLowerCase();
- }
-}
-
-if(typeof String.prototype.blank === 'undefined')
-{
- String.prototype.blank = function(){
- return /^\s*$/.test(this);
- }
-}
-
-String.prototype.o_O_trim = function(chars) {
- return this.replace(new RegExp("(^[" + chars + "]+|[" + chars + "]+$)", "g"), '')
}
\ No newline at end of file