-(function($, undefined) {
+/*
+ * Copyright (c) 2012, Intel Corporation.
+ *
+ * This program is licensed under the terms and conditions of the
+ * Apache License, version 2.0. The full text of the Apache License is at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ */
+
+(function($, undefined) {
'use strict';
var ChSelect = function(element, options) {
}
);
+
+ /* CHSELECT PLUGIN DEFINITION
+ * ========================== */
+
+ var old = $.fn.ch_select;
+
$.fn.ch_select = function(option) {
return this.each(function() {
var $this = $(this),
$.fn.ch_select.Constructor = ChSelect;
+
+ /* CHSELECT NO CONFLICT
+ * ==================== */
+
+ $.fn.ch_select.noConflict = function() {
+ $.fn.ch_select = old;
+ return this;
+ };
+
+
/* CHBUTTON DATA-API
* ================= */
+
$(function() {
$('select').ch_select();
})
-})(window.jQuery);
\ No newline at end of file
+})(window.jQuery);