!function($) {
-
"use strict";
var FOUNDATION_VERSION = '6.0.5';
var pluginName = functionName(plugin.constructor).toLowerCase();
plugin.uuid = this.GetYoDigits(6, pluginName);
-
+
if(!plugin.$element.attr('data-' + pluginName)){
plugin.$element.attr('data-' + pluginName, plugin.uuid);
}
* @param {String|Array} plugins - A list of plugins to initialize. Leave this out to initialize everything.
*/
reflow: function(elem, plugins) {
+
// If plugins is undefined, just grab everything
if (typeof plugins === 'undefined') {
plugins = Object.keys(this._plugins);
if(opt[0]) opts[opt[0]] = parseValue(opt[1]);
});
}
- $el.data('zf-plugin', new plugin($(this), opts));
+ try{
+ $el.data('zf-plugin', new plugin($(this), opts));
+ }catch(er){
+ console.error(er);
+ }finally{
+ return;
+ }
});
});
},