Skip to content

Instantly share code, notes, and snippets.

@angellromero
Created July 7, 2015 15:25
Show Gist options
  • Save angellromero/8401d656608d8258d3b5 to your computer and use it in GitHub Desktop.
Save angellromero/8401d656608d8258d3b5 to your computer and use it in GitHub Desktop.
Content Filter
<div class="results-container">
<ul class="results">
</ul>
<div class="no-results">
<p>Sorry the search you provided did not bring up any results.</p>
</div>
</div>
<div id="js-container" class="container">
<div id="shipping-returns" class="topic-block">
<h2>Shipping &amp; Returns</h2>
<ul>
<li>
<h3>Can I return my order?</h3>
<p>Yes. Munchkin.com offers Hassle Free Returns if you are not 100% satisfied with your purchase. Please return your order for a full refund, store credit, or exchange of the item cost within 60 days of the purchase date. Returns must be new, unused, in the original packaging and/or hang tags, and include all accessories, instruction guides and labels. Clothing items must be unworn. Domestic return shipping is free. The cost of the original shipping is not refundable.
<br>For our full Return Policy click <a href="/web/20140630101407/http://www.munchkin.com/customer-care/returns-policy/"><span style="color: blue;">here</span></a>
</p>
</li>
<li>
<h3>How do I return my order?</h3>
<p>Returns and Exchanges will only be accepted with the return form included in your box.
<br>1. Fill out the return/exchange form (state reason for return/exchange)
<br>2. Place the return form and items you are returning in the box.
<br>3. Seal box and affix return label (provided with return form) onto box.
<br>4. Drop off at your nearest UPS store.
<br>5. For questions or concerns, please call or email customer service at:
<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;a. Phone: 1 (800) 344.2229 (BABY)
<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;b. Email: cserv@munchkin.com
<br>For our full Return Policy click <a href="/web/20140630101407/http://www.munchkin.com/customer-care/returns-policy/"><span style="color: blue;">here</span></a>
</p>
</li>
<li>
<h3>What are the shipping cutoff times?</h3>
<p>Munchkin will make every attempt to ship out your order as soon as possible. The shipping cutoff times are as follows:
<br>Orders placed before 1:00pm PST: Ships Same Day
<br>Orders placed after 1:00pm PST: Ships Next Businesss Day
<br>Weekend and Holiday Orders: Ships Next Business Day</p>
</li>
</ul>
</div>
<div id="company" class="topic-block">
<h2>General</h2>
<ul>
<li>
<h3>What does Munchkin do to ensure the quality and safety of its products?</h3>
<p>For more than 15 years, Munchkin has been a trusted brand that retailers and parents have depended on with confidence, and we work hard to maintain that trust. The safety and well-being of our consumers is our top priority. All of our products are independently tested and meet or exceed the safety standards for our industry as established by both the Consumer Product Safety Commission (CPSC) and American Society for Testing and Materials (ASTM) International. We are constantly in touch with these national safety organizations to ensure we are up-to-date with clear scientific findings and any changes in regulations. In addition, follow-up tests are conducted on all of our products at periodic intervals after they launch to ensure each product's continued safety.</p>
</li>
<li>
<h3>Do any Munchkin products contain Bisphenol-A (BPA)?</h3>
<p>Very few Munchkin products contain polycarbonate plastic, the source of BPA. While national safety organizations have reiterated their position that BPA is safe even at levels much higher than those at which infants are likely exposed, Munchkin wants all consumers to have full knowledge of product materials so that parents may make their own informed decisions about what is right for their children. For those few Munchkin items that do contain BPA, we are exploring non-polycarbonate plastic replacement materials.</p>
</li>
<li>
<h3>Will you give my name and contact information to other companies?</h3>
<p>No, Munchkin will not provide or sell your registration information to any other company.</p>
</li>
<li>
<h3>I have a great product idea. How can I submit it?</h3>
<p>Unfortunately, Munchkin can not accept unsolicited product suggestions, concept or ideas.</p>
</li>
<li>
<h3>Where are Munchkin products sold at retail?</h3>
<p>Munchkin products are sold in mass, drug and grocery stores. Visit our <a href="/web/20140630101407/http://www.munchkin.com/customer-care/find-a-retailer%20/">Find a Retailer</a> section to find a store near you. Just type in your zip code and you'll see a list of stores near you. Please note that you should always check with the store to confirm the product is available.</p>
</li>
<li>
<h3>Are Munchkin products available for purchase outside of the United States?</h3>
<p>Yes, Munchkin products are available for purchase in other countries.</p>
</li>
<li>
<h3>Do Munchkin products contain latex?</h3>
<p>No, Munchkin products are latex-free.</p>
</li>
</ul>
</div>
<div id="mbaby" class="topic-block">
<h2>mbaby</h2>
<ul>
<li>
<h3>What is a Onester™? </h3>
<p>Our Onester is a one-piece body suit that leaves baby's legs uncovered and fastens with snaps at the crotch. That's where our similarities to other infant body suits ends. We made ours better by adding a double-layer on the front to keep baby's tummy and chest warm while baby is in a car seat, stroller or crib. This double layer front consists of 2 different coordinating prints, both in a timeless Americana style. The back is made of a single layer of fabric to keep baby's back side cool. We've also added a shiny brass snap in the center to guide proper snap alignment. Our Onesters are designed with the finest knit fabrics (100% cotton), for a super soft feel. </p>
</li>
<li>
<h3>What is a Sleepster™?</h3>
<p>Our Sleepster is a one-piece sleep suit with legs that fasten with snaps at the crotch. We built a better baby all-in-one by adding a built-in blanket to keep baby's front side warm while baby is in the crib. This double layer front consists of 2 different coordinating prints, both in a timeless Americana style. The back is made of a single layer of fabric to keep baby's back side cool. We’ve constructed convertible feet so the Sleepster grows with baby, and a shiny brass snap in the center to guide proper snap alignment. Our Sleepsters are designed with the finest knit fabrics (100% cotton), for a super soft feel. </p>
</li>
<li>
<h3>What is the double layer, and how does it work?</h3>
<p>Pediatricians recommend that nothing be placed in a crib with a baby, not even a blanket, for safe sleep. Our Sleepster is constructed with a double layer front -- a built in blanket -- which is very important for keeping baby both warm and safe in the crib. During daytime hours, babies spend the majority of their time on their backs (stroller, swing, bouncy seat, car seat) – so their front is exposed while their back is covered. Only the mbaby Onester has a patent-pending double-layer front for built-in comfort.</p>
</li>
<li>
<h3>How do I find the right size? Do the garments run small/large?</h3>
<p>mbaby apparel is made true to size. To make sure you order the right size every time, please see our size chart for specifications that include age, height and weight parameters for each size.</p>
</li>
<li>
<h3>Are mbaby Sleepsters treated to prevent flammability?</h3>
<p>Since our Sleepsters are made of natural cotton fibers, it is not necessary to treat our fabrics with flame retardant chemicals. Our garments meet CPSC flammability requirements.</p>
</li>
<li>
<h3>Will this item shrink? Should I size up to allow for shrinkage?</h3>
<p>Our fabrics have been pre-shrunk, so you do not need to size up to allow for shrinkage, please reference our sizing chart when ordering product.</p>
</li>
<li>
<h3>What size should I purchase for a baby gift?</h3>
<p>Determine how old you would llike the baby to be when they wear your gift. Use the size chart and choose the size that corresponds with the age you have picked. You can also use our size chart to help select correctly sized accessories to match.</p>
</li>
<li>
<h3>Are your pieces organic?</h3>
<p>Most of our solid white items are made from organic cotton.</p>
</li>
<li>
<h3>Should I wash the garment before first use?</h3>
<p>Yes, all packaging components should be immediately removed and each garment should always be washed prior to first use. Please see care label for specific instructions.</p>
</li>
<li>
<h3>How should the garments be washed?</h3>
<p>Machine wash cold water. Do not bleach. Tumble dry low. Do not iron.</p>
</li>
</ul>
</div>
<div id="nursery" class="topic-block">
<h2>Nursery</h2>
<ul>
<li>
<h3>With the Light My Way Nightlight, the nightlight turns off after 20 minutes even if I pressed the "on" button. Is this normal?</h3>
<p>Yes, this is how the Nightlight functions. You must press the "On" button again in order to turn the light back on.</p>
</li>
<li>
<h3>Can I place my Diaper Duty Organizer on my Baby Care Cart?</h3>
<p>The organizer cannot be place on the Baby Care Cart because it must be used on a stable flat surface, such as a changing table or dresser.</p>
</li>
<li>
<h3>How many diapers can the Diaper Change Organizer hold?</h3>
<p>The Diaper Change Organizer can hold up to 50 diapers.</p>
</li>
<li>
<h3>How do I turn on and turn off my Lulla-Vibe™ vibrating mattress pad?</h3>
<p>Press and hold the power button for two seconds to turn the Lulla-Vibe™ Vibrating Mattress Pad on. The Lulla-Vibe™ will automatically turn off after 30 minutes. Manually turn off the Lulla-Vibe™ by pressing the power button a third time.
</p>
</li>
<li>
<h3>What is the Swaddle Angel™ Swaddle Sizing?</h3>
<p>The Swaddle Angel™ Swaddle is designed for babies between 7-14lbs.</p>
</li>
<li>
<h3>Can I wash the Swaddle Angel™ Swaddle?</h3>
<p>Yes, the Swaddle Angel™ Swaddle is machine washable. To clean, machine wash in cold water. Do not bleach. Air-dry. Do not iron. Be sure to secure the arm hook and loop fastener into the swaddle position before washing.</p>
</li>
<li>
<h3>The Swaddle Angel™ Swaddle arms aren't staying secure</h3>
<p>Our Swaddle Angel™ Swaddle comes with a fabric guard over the hook &amp; loop fastener. Please remove and discard this piece of fabric before use in order to allow the fastener to securely attach to the pad.</p>
</li>
<li>
<h3>The "velcro" is wearing out; how should I wash the swaddle?</h3>
<p>The hook and loop fastener can wear out over multiple washes. To help extend its life, secure the swaddle arms before washing.</p>
</li>
<li>
<h3>Is the Swaddle Angel™ Blanket made out of Rayon or Bamboo?</h3>
<p>Our blankets are actually Rayon made from bamboo. Rayon can be made with many different sources, but we use bamboo because it offers more natural soft hand than rayon from another source.</p>
</li>
</ul>
</div>
<div id="Diaper Pail" class="topic-block">
<h2>Diaper Pail</h2>
<ul>
<li>
<h3>The lid on my pail has become difficult to close.</h3>
<p>This may be a result of the weight of too many diapers being placed in the bag so you may want to try placing fewer diapers in the pail. If the problem persists, it may be a result of some baking soda that has accidentally spilled into the gear system. This can easily be remedied by flushing warm water through the pail and allowing it to completely dry before using again.</p>
</li>
<li>
<h3>Do you offer replacement parts for the Arm &amp; Hammer Diaper Pail refill cartridge?</h3>
<p>Please <a href="/web/20140630101407/http://www.munchkin.com/customer-care/contact-us%20/">contact Munchkin Customer Service</a> at 800-344-BABY(2229) or <span><a href="mailto:" cserv@munchkin.com"="">cserv@munchkin.com</a> for information on how to replace your refill cartridge.</span></p>
</li>
<li>
<h3>The refill cartridge on my Arm &amp; HammerTM Diaper Pail stopped dispensing, but I can see that there is baking soda still in it. What should I do?</h3>
<p>Remove the baking soda cartridge from the vented base, shake well to break up any clumps, and re-install. Also, make sure that you have not filled the cartridge above the fill line as this will impede proper dispensing.</p>
</li>
<li>
<h3>How do I refill the cartridge on my Arm &amp; Hammer Diaper Pail with baking soda once it runs out?</h3>
<p>You can refill with your own Arm &amp; Hammer® baking soda by removing the baking soda cartridge from the vented base, then removing the filter disc by turning counter-clockwise. Cover the dispensing holes with a piece of tape and fill the cartridge up to the fill line. Re-insert the filter disc by turning clock-wise. Re-install cartridge into vented base and remove the tape.</p>
</li>
<li>
<h3>Can I refill the cartridge on my Arm &amp; Hammer Diaper Pail with something other than baking soda?</h3>
<p>The cartridge has been specifically designed for use with Arm &amp; Hammer® baking soda for optimum dispensing and odor control.</p>
</li>
<li>
<h3>When loading the bag in my Arm &amp; Hammer Diaper Pail, I tried to push down to snap the ring under the tabs, but it did not work.</h3>
<p>Try sliding the ring under the tabs to secure the bag in place. Bag will not work properly if the ring tabs are not secured.</p>
</li>
<li>
<h3>When is it time for me to empty the refill bag in my Arm &amp; Hammer Diaper Pail ?</h3>
<p>You'll know it is time to change the bag once you can no longer comfortably place more diapers into the pail. Filling the bag beyond capacity will lead to premature wear on the bag and is not recommended.</p>
</li>
<li>
<h3>Can I use the Arm &amp; Hammer Diaper Pail Refill Bags with other diaper disposal systems or trash cans?</h3>
<p>No, the Arm &amp; HammerTM Diaper Pail Refill bags are specifically designed for use with the Arm &amp; HammerTM Diaper Pail.</p>
</li>
<li>
<h3>What is the best way to clean my Arm &amp; Hammer Diaper Pail?</h3>
<p>Periodically clean the Diaper Pail with warm water and soap. You may also want to try making your own natural cleaning solution by mixing a little baking soda, vinegar and lemon.</p>
</li>
</ul>
</div>
<div id="feeding" class="topic-block">
<h2>Feeding</h2>
<ul>
<li>
<h3>Can the booster seat be used without the height adjustment legs?</h3>
<p>Yes, the rubber pads on the bottom of the bag provides a non-slip grip.</p>
</li>
<li>
<h3>Can the height of the booster seat be adjusted?</h3>
<p>Yes, to adjust the height, turn the seat upside down. Lift the side flaps on the bottom of the bag and fold over two times. Rotate adjustable legs outwards and push down to secure into place.</p>
</li>
<li>
<h3>How do you take the grate out of the bowl?</h3>
<p>First, the knob on the top of the handle must be fully tightened. Once you cannot tighten the knob any more place your hand on the handle and press down while turning it counter clock wise. This will then loosen and remove the grate from the bowl.</p>
</li>
<li>
<h3>How many times can I use one sterilizer bag?</h3>
<p>Each bag can be re-used up to twenty times.</p>
</li>
<li>
<h3>I boiled my Powdered Formula Dispenser and the lid will no longer fit and the bottom has melted.</h3>
<p>The formula dispensers are not meant to be boiled, microwaved or steam sterilized because they can melt or warp.</p>
</li>
<li>
<h3>Is the Deluxe Drying Rack dishwasher safe?</h3>
<p>The Deluxe Drying Rack is top rack only dishwasher safe.</p>
</li>
<li>
<h3>Is there a way to soften the stiff bristles of my new Deluxe Bottle and Nipple Brush?</h3>
<p>To soften the bristles soak the brush in warm water for about 3-5 minutes.</p>
</li>
<li>
<h3>Do you sell replacement mesh bags for the Fresh Food Feeder?</h3>
<p>No, the mesh bag on the Fresh Food Feeder can not be removed for safety reasons. It is permanently attached to the handle.</p>
</li>
<li>
<h3>Sometimes food gets stuck in the mesh bag of the Fresh Food Feeder. How should I clean it?</h3>
<p>Try soaking it in a warm cup of water immediately after usage, then wash it with warm soapy water. You could also use a soft-bristled toothbrush to gently scrub the mesh. The Fresh Food Feeder is also top rack dishwasher safe.</p>
</li>
<li>
<h3>My child is having trouble getting liquid out of the sippy cup. What should I do?</h3>
<p>You may need to activate the valve. You can either squeeze the round part or rub the valve between your hands.</p>
</li>
<li>
<h3>Where can I find replacement straws for the Insulated Straw Cup?</h3>
<p>You may need to activate the valve. You can either squeeze the round part or rub the valve between your hands.</p>
</li>
<li>
<h3>I purchased a set of suction bowls for my child and the bowls will not stick to my child's highchair tray.</h3>
<p>Before placing the bowls on the highchair tray make sure it is clean and free of any debris. You can also apply rubbing alcohol to the suction cups and the surface of the tray for better results.</p>
</li>
<li>
<h3>Why is it so easy for my child to pull the lid of the Snack Catcher?</h3>
<p>If your child is tugging on the lid of the snack catcher it may loosen with time and thus become easier for your child to remove.</p>
</li>
</ul>
</div>
<div id="bath" class="topic-block">
<h2>Bath</h2>
<ul>
<li>
<h3>How do I clean my Corner Bath Organizer?</h3>
<p>The organizer can be hand washed in cold water and allowed to line dry.</p>
</li>
<li>
<h3>How do I properly use the Shampoo Rinser?</h3>
<p>Hold the rinser against your child's forehead and gently pour the water to rinse off shampoo and soap.</p>
</li>
<li>
<h3>I am having trouble getting my bath toy suction cups to stick to the tub wall. How can I get them to stick?</h3>
<p>Clean the suction cups with alcohol solution and a little water and try again.</p>
</li>
<li>
<h3>I put the Star Fountain into the tub, but it is not spinning or squirting water. What should I do?</h3>
<p>Wait until you have filled the tub to the desired level for your baby before placing the Star Fountain in the tub. Nudge it slightly and it will begin spinning.</p>
</li>
<li>
<h3>Is the Caterpillar Spiller BPA, PVC and Phthalate free?</h3>
<p>The Caterpillar Spiller is BPA, PVC and Phthalate free.</p>
</li>
<li>
<h3>What is the best way to clean the Wet Wheels?</h3>
<p>The best way to clean the Wet Wheels is to rinse them with warm water and wipe dry before storing.</p>
</li>
<li>
<h3>Why does my Corner Bather Organizer fall off my shower wall?</h3>
<p>The organizer may fall off of your shower wall if the wall and/or suction cups have not been cleaned properly. Make sure that the wall and suction cups are free of any mildew by using mild soap and water.</p>
</li>
<li>
<h3>How should I clean the Bubble Ducky Spout Guard?</h3>
<p>Hand wash with warm soapy water and rinse. Be sure to air dry.</p>
</li>
<li>
<h3>How does the Safety Baby Bath Cradle indicate that the water is too hot for my baby?</h3>
<p>There is a White Hot Safety Disc which will turn white if the water is too hot (approximately 104°F / 40°C and above). If it turns white, mix in cold water until the dot turns blue again before placing baby on the cradle.</p>
</li>
<li>
<h3>How should I clean the Safety Baby Bath Cradle?</h3>
<p>Rinse with clean water and squeeze out excess water (do not wring). Prop cradle upright or on its side to air dry. Allow to completely air dry before storing.</p>
</li>
<li>
<h3>On the Safety Bath Ducky, how long does it take for the disc to let me know the water is too hot?</h3>
<p>Always remember to place the Safety Bath Ducky in the tub before allowing child in water. Let Safety Bath Ducky sit for one minute. If the safety disc spells HOT, bath is too hot for baby (approximately 103-104 F/39.4-40C). Allow water to cool down or add cold water until the original color returns to safety disc, indication a safe bathing temperature (approximately 98F/36.7C).</p>
</li>
<li>
<h3>Can I use a pump to inflate the Inflatable Safety Duck Tub?</h3>
<p>For best results inflate by mouth or use a low pressure pump. DO NOT OVER-INFLATE. Do not use high-pressure compressor or pump.</p>
</li>
<li>
<h3>How do I clean the Inflatable Safety Duck Tub?</h3>
<p>Clean with sponge using mild soap and water. Do not use detergent or bleach. Allow to completely air dry before storing.</p>
</li>
</ul>
</div>
<div id="toys" class="topic-block">
<h2>Toys</h2>
<ul>
<li>
<h3>Can I freeze any of the Munchkin teethers?</h3>
<p>Yes, any of our Fun Ice Teethers can be frozen. The material will still stay soft for your baby's tender gums.</p>
</li>
<li>
<h3>Is the material in the teethers safe for my baby?</h3>
<p>Yes, the gel in the Fun Ice Teethers is non-toxic.</p>
</li>
<li>
<h3>How do I wash the Teething Blanket?</h3>
<p>Machine was cold in gentle cycle and tumble dry low heat. Do not use bleach.</p>
</li>
</ul>
</div>
<div id="travel" class="topic-block">
<h2>Travel</h2>
<ul>
<li>
<h3>I am having trouble getting my car shade suction cups to stick to the car. How can I get them to stick?</h3>
<p>Clean the suction cups with alcohol solution and a little water and try again.</p>
</li>
<li>
<h3>Does the Baby On-the-Go Bag come with a cold pack?</h3>
<p>No, a cold pack or warm pack is not included with the Baby On-the-Go Bag -- try one of our Fun Ice products to keep your items cold. The Baby On-the-Go Bag is insulated so it will keep your items at the original temperature, whether it was cold or warm.</p>
</li>
<li>
<h3>How does the heat alert work on the Safety SunBlock Shades?</h3>
<p>The patented White Hot® Heat Alert reveals the word HOT on the safety disc when car interior is too hot for baby. This same Heat Alert is also available on the SpongeBob SquarePants and Dora the Explorer Safety SunBlock Shade.</p>
</li>
</ul>
</div>
/*
* Improves jQuery:contains to become case-insensitive
* */
window.jQuery.expr[':'].Contains = function(a, i, m) {
return window.jQuery(a).text().toUpperCase()
.indexOf(m[3].toUpperCase()) >= 0;
};
(function($) {
/**
* Content Filter
*/
var _namespace = 'ContentFilter';
var ContentFilter = this.ContentFilter = function(container, options) {
this.$container = $(container);
this.defaults = {
'selector': 'ul > li',
'results' : '.results',
'noResults' : '.no-results',
'minLength' : 2,
'input' : '.content-search',
'highlight' : true
};
this.options = $.extend({}, this.defaults, options);
this.$input = $(this.options.input);
this.$results = $(this.options.results);
this.$noResults = $(this.options.noResults);
this.$container.data(this.namespace, this);
this.init();
};
ContentFilter.prototype = {
// Define plugin namespace for data and other uses
namespace : _namespace,
/**
* Constructor/Initialize method
*/
init : function() {
var _self = this,
$resetBtn = $('.reset');
if(_self.$input.length > 0) {
_self.$input.on('keyup.filter', function(e) {
// Trigger Search after exceeds minLength
if((_self.$input.val().length) > _self.options.minLength) {
_self.search(_self.$input.val());
}else {
_self.softReset();
}
});
}
if($resetBtn.length > 0 ) {
$resetBtn.on('click.reset', function(e) {
e.preventDefault();
_self.reset();
});
}
},
/*
* Searches through the content within the $container and filters out
* content that matches the term
*
* @param term:String
* */
search : function( term ) {
var _self = this;
_self.clearResults();
_self.$container.fadeOut(250);
var $matchedItems = _self.$container.find(_self.options.selector + ':Contains(' + term + ')');
if($matchedItems.length > 0 ) {
_self.$noResults.fadeOut(250);
var fragment = document.createDocumentFragment();
for ( var i = 0; i < $matchedItems.length; i++ ) {
fragment.appendChild($($matchedItems[i]).clone()[0]);
}
if(_self.options.highlight) {
var html = $('<div/>').append(fragment.cloneNode(true)).clone().html();
html = _self.highlight(html, term);
_self.$results.html(html);
}else {
_self.$results.append(fragment.cloneNode(true));
}
_self.showResults();
}else {
// Display No Results Message
_self.$noResults.fadeIn(250);
}
},
/*
* Displays the results
* */
showResults: function() {
this.$results.fadeIn(250);
},
/*
* Hides the results
* */
hideResults: function() {
this.$results.fadeOut(250);
},
/*
* Clears the current results
* */
clearResults: function() {
if(this.$results.length > 0) {
this.$results.html('');
}
},
/*
* Resets the $container's content and $input value
* */
reset : function(callback) {
this.$input.val('');
this.softReset(callback);
},
/*
* Resets the $container's content but leaves current $input value intact
* */
softReset: function(callback) {
this.hideResults();
this.$noResults.fadeOut(250);
this.$container.fadeIn(250, function() {
if (typeof callback === 'function') {
callback();
}
});
},
/*
*
* */
getSearchTerm: function() {
},
/*
* Returns a "highlight" fragment to be used to replace search terms in the content
* */
highlight: function(data, term) {
var regex = new RegExp( '(' + term + ')', 'gi' );
return data.replace( regex, '<span class="highlight">$1</span>' );
}
};
$.fn[_namespace] = function(options) {
var args = arguments;
if (options === undefined) {
options = {};
}
return this.each(function() {
if (typeof options === "object") {
if (obj = $(this).data(ContentFilter.prototype.namespace)) {
obj.init.apply(obj, Array.prototype.slice.call(args, 1));
} else {
new ContentFilter(this, options);
}
} else {
if (typeof options === 'string' && ContentFilter.prototype[options]) {
if (obj = $(this).data(ContentFilter.prototype.namespace)) {
obj[options].apply(obj, Array.prototype.slice.call(args, 1));
}
} else {
console.error('Method ' + options + ' does not exist in ' + this.namespace);
}
}
});
};
}).apply(window, [window.jQuery]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment